package com.hy.java.utility.common;

/**
 * 有序二元组（左、右）
 * 
 * @author chiefeweight
 */
public class Pair<Type_left, Type_right> {
	private Type_left left;
	private Type_right right;

	public Pair() {
	}

	public Pair(Type_left left, Type_right right) {
		this.left = left;
		this.right = right;
	}

	public Type_left getLeft() {
		return left;
	}

	public void setLeft(Type_left left) {
		this.left = left;
	}

	public Type_right getRight() {
		return right;
	}

	public void setRight(Type_right right) {
		this.right = right;
	}

	public static <Type_left, Type_right> Pair<Type_left, Type_right> createPair(Type_left left, Type_right right) {
		return new Pair<Type_left, Type_right>(left, right);
	}
}
